#include <REGx52.H>
#include "seg.h"

unsigned char seg_wela[8] = {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07};//位码
unsigned char seg_dula[10] = {0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F};//段码

void Seg_disp(unsigned char  wela,unsigned char  dula)
{
	P3 = 0x00;
	P0 = seg_wela[wela];
	P3 = seg_dula[dula];
}